package com.kvn.dubbo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

/**
 * Created by wangzhiyuan on 2019/1/29
 */
@SpringBootApplication
@ImportResource("classpath:beans/dubbo.xml")
public class DubboProviderApp {
    public static void main(String[] args) throws InterruptedException {
        SpringApplication app = new SpringApplication(DubboProviderApp.class);
        app.setWebApplicationType(WebApplicationType.NONE);
        app.run(args);
        Thread.currentThread().join();
//        SpringApplication.run(DubboProviderApp.class, args);
    }
}
